import {createStore ,applyMiddleware } from 'redux'
// import thunkMiddleware from 'redux-thunk';
import {thunk} from 'redux-thunk'
import partsReducer from './partsSlice';
import logger from 'redux-logger';
const middlewares = [thunk,logger]
const createStoreWithMiddleware = applyMiddleware(
  ...middlewares
)(createStore);
// const store=createStore(partsReducer,applyMiddleware([thunkMiddleware,logger]));
const store=createStoreWithMiddleware(partsReducer);
export default store


